/**   
* @{#} DataType.java Create on 2013-6-22 下午6:47:25   
*   
* Copyright (c) 2012 by Baidu.   
*/
package objtable.struct;

import objtable.engine.xmlnode.gen.Dtype;

/**   
* @author <a href="mailto:zhangbo07@baidu.com">zhangbo07</a>  
* @version 1.0   
*/

public enum DataType {
	NULL, STRING, INT, LONG, DOUBLE, DATE, LIST_ROW, ROW;

	public static DataType convertDT(Dtype t) {
		switch (t) {
		case INT:
			return INT;
		case DOUBLE:
			return DOUBLE;
		case LONG:
			return LONG;
		case STRING:
			return STRING;
		}
		return NULL;
	}
}
